From: shand@kneesaa.uk.xensource.com Date: Tue, 20 Jun 2006 10:02:49 +0000 (+0100) Subject: Remove some spurious BUG_ON()'s from the credit scheduler. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15921^2~21 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=e055d02fdee944490cc8c8e78cd441cd2e8a8227;p=xen.git Remove some spurious BUG_ON()'s from the credit scheduler. Signed-off-by: Steven Hand --- diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c index 644aee3f09..3b804cd644 100644 --- a/xen/common/sched_credit.c +++ b/xen/common/sched_credit.c @@ -967,9 +967,6 @@ csched_load_balance(int cpu, struct csched_vcpu *snext) if ( peer_cpu == cpu ) break; - BUG_ON( peer_cpu >= csched_priv.ncpus ); - BUG_ON( peer_cpu == cpu ); - /* * Get ahold of the scheduler lock for this peer CPU. * @@ -1072,7 +1069,6 @@ csched_schedule(s_time_t now) ret.task = snext->vcpu; CSCHED_VCPU_CHECK(ret.task); - BUG_ON( !vcpu_runnable(ret.task) ); return ret; }